cmake_minimum_required(VERSION 3.2)

set(CMAKE_CXX_STANDARD 11)


file(GLOB SOURCE_LIST *.cpp *.c *.h)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fopenmp -O3 -fPIC -fpermissive ${DEFINED_FLAG} -ldl")
message(status ${CMAKE_CXX_FLAGS})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
add_definitions(-D_LINUX)

find_package(OpenCV 3 REQUIRED)

include_directories(.)
message(FILE: ${SOURCE_LIST})

add_executable(IRAppDemo
		${SOURCE_LIST}
        menu.c
        )

target_link_libraries(IRAppDemo
    ${OpenCV_LIBS}
    dl
)
